package com.example.springbootdemo.bean.child;

import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;

@Slf4j
public class Bean04 implements InitializingBean {

  @PostConstruct
  public void init1() {
    log.info("@PostConstruct 初始化");
  }

  @Override
  public void afterPropertiesSet() throws Exception {
    log.info("aware初始化");
  }

  public void init3() {
    log.info("@Bean 初始化");
  }
}
